<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <link rel="stylesheet" href="style.css" />
    <title>Exchange Rate</title>
  </head>
  <body>
    <img src="money.png" alt class="money-img" />
    <h1>汇率计算器</h1>
    <p>选择货币和金额以获取汇率</p>
    <div class="container">
      <div class="currency">
        <select id="currency1">
          <option value="CNY">CNY</option>
          <option value="USD" selected>USD</option>
          <option value="EUR">EUR</option>
          <option value="HKD">HKD</option>
        </select>
        <input id="amount1" type="number" value="1" />
      </div>
      <div class="swap-rate-container">
        <button class="btn" id="swap">交换</button>
        <div class="rate" id="rate"></div>
      </div>
      <div class="currency">
        <select id="currency2">
          <option value="CNY" selected>CNY</option>
          <option value="USD">USD</option>
          <option value="EUR">EUR</option>
          <option value="HKD">HKD</option>
        </select>
        <input id="amount2" type="number" placeholder="0" />
      </div>
    </div>

    <script src="script.js"></script>
  </body>
</html>
